package com.bwie.Es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.lang.reflect.Type;

@Data
@Document(indexName = "es_images")
public class EsImages {

    @Id
    @Field(type = FieldType.Keyword)
    private Integer id;

    @Field(type = FieldType.Integer)
    private Integer GoodsId;


    @Field(type = FieldType.Text)
    private String img;


}
